import { type IRes, chatHttp } from '@/utils/request';
import { IChangePerInfoParams, ILoginResponseData } from './type';

// 修改用户信息接口
export const handleChange = async (data: IChangePerInfoParams) =>
	chatHttp.post<IRes<ILoginResponseData>>({
		url: '/auth/update_info',
		data
	});
